package com.zcp.service;

import com.zcp.dao.ClassDAO;
import com.zcp.entity.class_z;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ClassServiceImpl implements ClassService{

    @Autowired
    private ClassDAO classDAO;


    @Override
    public List<class_z> findAll() {
        return classDAO.findAll();
    }

    @Override
    public void save(class_z class_z) {
        classDAO.save(class_z);
    }

    @Override
    public class_z change(Integer id) {
        return classDAO.change(id);
    }

    @Override
    public void changed(class_z class_z) {
        classDAO.changed(class_z);
    }

    @Override
    public void delete(Integer id) {
        classDAO.delete(id);
    }
}
